
import NewsPublish from '../../../components/publish-manage/NewsPublish'
import usePublish from '../../../components/publish-manage/usePublish'
import {Button} from 'antd'
function Published() {
    const {dataSource,handleSunset}= usePublish(2)
    return (
        <div>
            <NewsPublish data={dataSource} button={(id)=><Button onClick={()=>handleSunset(id)}>下线</Button>}></NewsPublish>
        </div>
    )
}

export default Published